<?php



        $id = $_GET['id'];


        // $sql = "delete from `admin` where `id` =$id";


        // mysqli_query($link,$sql);
         $rows = getDel($id);
        if ($rows > 0) {
            echo '<script type="text/javascript">alert("删除成功！");self.location.href="index.php?c=admin&a=list&admin=1";</script>';die;
        }else{
            echo '<script type="text/javascript">alert("删除失败！");history.go(-1);</script>';die;
        }
?>
